import request from '/@/utils/request';

/**
 * （不建议写成 request.post(xxx)，因为这样 post 时，无法 params 与 data 同时传参）
 *
 */

export function normApi() {
	return {
		normAdd: (data) => {
			return request({
				url: '/api/norm/add',
				method: 'post',
				data,
			});
		},
		normList: (data) => {
			return request({
				url: '/api/norm/list',
				method: 'post',
				data,
			});
		},
		normDetail: (data) => {
			return request({
				url: '/api/norm/detail',
				method: 'post',
				data,
			});
		},
		normEdit: (data) => {
			return request({
				url: '/api/norm/edit',
				method: 'post',
				data,
			});
		},
		finalData: (data) => {
			return request({
				url: '/api/norm/finalData',
				method: 'post',
				data,
			});
		},
	};
}


